package com.hy.common.vo;

import com.hy.common.enums.ExceptionEnums;
import lombok.Data;

//返回的结果
@Data
public class ExceptionResult {

    private int status;

    private String msg;

    private Long timestamp;//时间戳

    public ExceptionResult() {

    }
    public ExceptionResult(ExceptionEnums em) {
        this.status = em.getCode();
        this.msg = em.getMsg();
        this.timestamp = System.currentTimeMillis();
    }
}
